<?php

use yii\helpers\Html;
use yii\grid\GridView;
use yii\widgets\Breadcrumbs;

/* @var $this yii\web\View */
/* @var $dataProvider yii\data\ActiveDataProvider */

$type = (isset($type)) ? $type : 1;
$this->params['breadcrumbs'][] = ['label' => '样本中心', 'url' => ['/sample/view-position']];
$this->params['breadcrumbs'][] = ['label' => (($type == 1) ? 'D' : 'R').'NA库', 'url' => ['/sample/view-dna']];

$this->registerJsFile('@web/js/xna.js', ['depends' => 'app\assets\AppAsset']);

?>
<div class="site-index">

  <?= $this->render('main') ?>

  <div class="fill-info">

    <?= Breadcrumbs::widget([
      'homeLink' => ['label' => '医疗管理系统', 'url' => '#'],
      'links' => isset($this->params['breadcrumbs']) ? $this->params['breadcrumbs'] : [],
    ]) ?>

    <?= $this->render('@app/views/xna/'.$view.'.php', [
      'dataProvider' => isset($dataProvider) ? $dataProvider : '',
      'model' => isset($model) ? $model : '',
      'info' => (isset($info)) ? $info : '',
      'alter' => (isset($alter)) ? $alter : '',
      'type' => (isset($type)) ? $type : 1,
    ]) ?>
  </div>
</div>
